#pragma once
#include<stdio.h>
#include<unistd.h>
#define SIZE 4096
#define NENO 1
#define LINE (1<<1)
#define ALL (1<<2)
typedef struct _my_file{
    int _fileno;
    char _buff[SIZE];
    int _flag;
    int _end;
}my_file;
extern my_file* my_fopen(const char*str,const char*mode);
extern int my_fwrite(char*ptr,int num,my_file*stream);
extern int my_fflush(my_file*stream);
extern int my_close(my_file*fp );
